package com.atmilan.quartz.mapper;

import com.atmilan.quartz.model.entity.paolo.PaoloProduct;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * 功能描述: paolo商品
 * @Author: wangzh
 * @Date: 2023/2/8 16:52
 */
@DS("source_hiku")
public interface PaoloProductMapper extends BaseMapper<PaoloProduct> {

    @Update("truncate table paolo_product")
    void deleteAll();

    @Update("truncate table paolo_product_back")
    void deleteProductBack();

    @Update("insert into paolo_product_back select * from paolo_product")
    void copyProductBack();
}
